package com.wangxiang.shop.product.dao;

import com.wangxiang.shop.product.entity.SkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-02 11:30:17
 */
@Mapper
public interface SkuDao extends BaseMapper<SkuEntity> {
	List<SkuEntity> getSku(int spuId);
	int updateWare(int id,int num);
	int updateStatus(int id , int status);

	int addGetKey(SkuEntity skuEntity);

	List<SkuEntity> selectAll();
}
